package HomeWorkNewYear;

public class ooDay02SwimTest {
    public static void main(String[] args) {


    ooDay02Dog xg=new ooDay02Dog("小黑",2,"黑色");
    xg.swim();
    xg.eat();
    xg.drink();
    xg.lookHome();

    ooDay02Chick xj=new ooDay02Chick("小黄",1,"黄色");
    xj.eat();
    xj.drink();
    xj.layEggs();

    ooDay02Fish xy=new ooDay02Fish("小蓝",3,"蓝色");
        xy.eat();
        xy.drink();
        xy.swim();
    }
}

